package sng.modules.model.vo
{
	/**
	 * 
	 * @author leonliu
	 * 用户全局属性信息
	 * 
	 */	
	[Bindable]
	public class MainVO
		
	{
		/**
		 *用户ID 
		 */		
		private var m_uid:int;
		

		public function get uid():int
		{
			return m_uid;
		}
		
		public function set uid(value:int):void
		{
			m_uid = value;
		}
		
		
		private var m_level:int;
		
		/**
		 * 
		 * 用户等级
		 * 
		 */		
		public function get level():int
		{
			return m_level;
		}
		
		public function set level(value:int):void
		{
			m_level = value;
		}
		
		private  var m_username:String;
		
		
		/**
		 * 用户名
		 */
		public function get username():String
		{
			return m_username;
		}
		
		/**
		 * @private
		 */
		public function set username(value:String):void
		{
			m_username = value;
		}
		
		private  var m_usernick:String;

		/**
		 * 城市呢称
		 */
		public function get usernick():String
		{
			return m_usernick;
		}

		/**
		 * @private
		 */
		public function set usernick(value:String):void
		{
			m_usernick = value;
		}

		private var  m_userimage:String;

		/**
		 * 头像
		 */
		public function get userimage():String
		{
			return m_userimage;
		}

		/**
		 * @private
		 */
		public function set userimage(value:String):void
		{
			m_userimage = value;
		}

		private var  m_money:Number; 

		/**
		 * 金币
		 */
		public function get money():Number
		{
			//转换为整形，避免出现小数点 eason 20110718
			return int(m_money);
		}

		/**
		 * @private
		 */
		public function set money(value:Number):void
		{
			m_money = value;
		}
		
		
		private  var m_satisfaction:uint;

		/**
		 * 满意度
		 */
		public function get satisfaction():uint
		{
			return m_satisfaction;
		}

		/**
		 * @private
		 */
		public function set satisfaction(value:uint):void
		{
			m_satisfaction = value;
		}
		
		
		private var  m_totalpersonnum:uint;

		/**
		 * 总人口
		 */
		public function get totalpersonnum():uint
		{
			return m_totalpersonnum;
		}

		/**
		 * @private
		 */
		public function set totalpersonnum(value:uint):void
		{
			personInfo="0";
			m_totalpersonnum = value;
		}
		
		
		private  var m_personnum:uint;

		/**
		 * 当前人口数
		 */
		public function get personnum():uint
		{
			return m_personnum;
		}

		/**
		 * @private
		 */
		public function set personnum(value:uint):void
		{
			personInfo="0";
			m_personnum = value;
		}

		private  var m_energy:uint;

		/**
		 * 神力值
		 */
		public function get energy():uint
		{
			return m_energy;
		}

		/**
		 * @private
		 */
		public function set energy(value:uint):void
		{
			m_energy = value;
		}
		
		private var m_goods:uint=10000;

		/**
		 *货物数量 
		 */
		public function get goods():uint
		{
			return m_goods;
		}

		/**
		 * @private
		 */
		public function set goods(value:uint):void
		{
			m_goods = value;
		}

		public function get personInfo():String
		{
			return personnum.toString()+"/"+totalpersonnum.toString();
		}
		
		public function set personInfo(s:String):void
		{
			
		}
		
		private var m_goodsuplimit:uint;

		/**
		 *货物上限 
		 */
		public function get goodsuplimit():uint
		{
			return m_goodsuplimit;
		}

		/**
		 * @private
		 */
		public function set goodsuplimit(value:uint):void
		{
			m_goodsuplimit = value;
		}

		private var m_socialexperience:int;
		
		/**
		 * 
		 * 用户社交经验值
		 * 
		 */		
		public function get socialexperience():int
		{
			return m_sociallevel;
		}
		
		public function set socialexperience(value:int):void
		{
			m_sociallevel = value;
		}
		
		private var m_experience:int;
		
		/**
		 * 
		 * 用户经验值
		 * 
		 */		
		public function get experience():int
		{
			return m_experience;
		}
		
		public function set experience(value:int):void
		{
			m_experience = value;
		}
		
		
		//
		
		private var m_sociallevel:int;
		
		/**
		 * 
		 * 用户社交等级
		 * 
		 */		
		public function get sociallevel():int
		{
			return m_sociallevel;
		}
		
		public function set sociallevel(value:int):void
		{
			m_sociallevel = value;
		}
		
		
		
		
		private var m_cash:int;
		
		/**
		 * 
		 * 用户现金
		 * 
		 */		
		public function get cash():int
		{
			return m_cash;
		}
		
		public function set cash(value:int):void
		{
			m_cash = value;
		}
	}

}